﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Demo01.aspx.cs" Inherits="WebApplication4.Demo01" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h1>注册页面</h1>
            <asp:Label ID="Label1" runat="server" Text="用户名："></asp:Label><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label2" runat="server" Text="密  码："></asp:Label><asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>
            <br />
            <asp:Label ID="Label3" runat="server" Text="性  别："></asp:Label><asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem Value="男">男</asp:ListItem>
                <asp:ListItem Value="女">女</asp:ListItem>
            </asp:DropDownList>
            <br />
            <asp:Label ID="Label4" runat="server" Text="爱好："></asp:Label>
            <asp:CheckBoxList ID="CheckBoxList1" runat="server">
                <asp:ListItem Value="sing">唱歌</asp:ListItem>
                <asp:ListItem Value="dance">跳舞</asp:ListItem>
                <asp:ListItem Value="TV">看电视</asp:ListItem>
                <asp:ListItem Value="moive">看电影</asp:ListItem>
            </asp:CheckBoxList>
            <br />
            <asp:Label ID="Label5" runat="server" Text="籍贯："></asp:Label>
            <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="true"  OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged"></asp:DropDownList>
            <asp:Label ID="Label6" runat="server" Text="省"></asp:Label>&nbsp;
            <asp:DropDownList ID="DropDownList3" runat="server"></asp:DropDownList><asp:Label ID="Label7" runat="server" Text="市"></asp:Label>
            <br />
            <asp:Label ID="Label8" runat="server" Text="其他信息："></asp:Label>
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            <br />
            <asp:Literal ID="Literal1" runat="server">头像：</asp:Literal>
            <asp:FileUpload ID="ful" runat="server" />
            <br />
            <asp:Button ID="Button1" runat="server" Text="提交"  OnClick="Button1_Click"/>
            <br />
            <asp:Literal ID="result" runat="server"></asp:Literal>
            <br />
            <asp:Image ID="Image1" runat="server" />
        </div>
    </form>
</body>
</html>
